package org.ioc.com.mybatis_demo3.service;

import org.apache.ibatis.annotations.Mapper;
import org.ioc.com.mybatis_demo3.mapper.UserInfoXmlMapper;
import org.ioc.com.mybatis_demo3.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Mapper
public class UserInfoService {
    @Autowired
    UserInfoXmlMapper userInfoXmlMapper;
    public List<UserInfo> select(){
        return userInfoXmlMapper.select2();
    }
    public void delete(Integer id){
        userInfoXmlMapper.delete(id);
    }
}
